package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.OralMedicineDao;
import com.ad_hccm.domain.TreatmentHistory.OralMedicine;
import com.ad_hccm.service.TreatmentHistory.OralMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 口服药物ServiceImpl
 */
@Service
public class OralMedicineServiceImpl implements OralMedicineService {
    @Autowired
    private OralMedicineDao oralMedicineDao;

    @Override
    public boolean save(OralMedicine oralMedicine) {
        return oralMedicineDao.save(oralMedicine);
    }

    @Override
    public boolean update(OralMedicine oralMedicine) {
        return oralMedicineDao.update(oralMedicine);
    }

    @Override
    public OralMedicine getById(String id) {
        return oralMedicineDao.getById(id);
    }

    @Override
    public List<OralMedicine> getAll() {
        return oralMedicineDao.getAll();
    }
}
